package com.lyp.mvpsupermanage.utils;

import android.content.Context;


/**
 * 作者:ChenXi 时间:2017/8/14 14: 57
 * APP工具类
 */

public class AppUtil {

    private static Context mContext;

    public static void init(Context context) { //在Application中初始化
        mContext = context;
    }

    @SuppressWarnings("deprecation")
    public static int getColor(int resId) {
        return mContext.getResources().getColor(resId);
    }
}
